home *** CD-ROM | disk | FTP | other *** search
/ Borland JBuilder 6 / jbuilder6.iso / IBM VisualAge for Java Enterprise v4.0 Retail / ivj40 / setup / IDE.Cab / F85560_DataException.class (.txt) < prev    next >
Encoding:
Java Class File  |  2001-05-09  |  1.5 KB  |  53 lines

  1. package com.ibm.db.base;
  2.  
  3. import java.sql.SQLException;
  4.  
  5. public class DataException extends Exception {
  6.    protected SQLException fieldSqlException = null;
  7.    protected int errCode;
  8.    protected Object[] msgArgs;
  9.    public static final int sqlException = 101;
  10.    public static final int inconsistentColumnCount = 102;
  11.    public static final int inconsistentColumnType = 103;
  12.    public static final int wrongObjectType = 104;
  13.    public static final int noSQL = 106;
  14.    public static final int badSQLType = 107;
  15.    public static final int notRegistered = 108;
  16.    public static final int zipError = 109;
  17.    public static final int unzipError = 110;
  18.    public static final int decodeError = 111;
  19.    public static final int websphereConnectionError = 112;
  20.    public static final int invalidConnPoolType = 113;
  21.    public static final int unexpectedError = 114;
  22.    public static final int noInitialContext = 115;
  23.    public static final int jdbc1 = 116;
  24.    private static final String copyright = "Licensed Materials -- Property of IBM\n(c) Copyright International Business Machines Corporation, 1998, 2000";
  25.  
  26.    public DataException(String var1, int var2) {
  27.       super(var1);
  28.       this.errCode = var2;
  29.    }
  30.  
  31.    public DataException(String var1, SQLException var2) {
  32.       super(var1);
  33.       this.fieldSqlException = var2;
  34.       this.errCode = 101;
  35.    }
  36.  
  37.    public int getErrorCode() {
  38.       return this.errCode;
  39.    }
  40.  
  41.    public Object[] getMessageArgs() {
  42.       return this.msgArgs;
  43.    }
  44.  
  45.    public SQLException getSqlException() {
  46.       return this.fieldSqlException;
  47.    }
  48.  
  49.    public void setMessageArgs(Object[] var1) {
  50.       this.msgArgs = var1;
  51.    }
  52. }
  53.